package com.aote.expression.occasion;

import java.util.Map;

import org.w3c.dom.Element;

import com.browsesoft.htmlcomponent.HTMLBasicComponent;

/**
 * 无值的情况下处理
 * 
 */
public class NoValueOccasion implements OccasionCondition {

	public boolean isFit(Map attrs, String name, Element elem,
			HTMLBasicComponent component) {
		String value = (String) attrs.get(name);
		if (value == null || value.trim().equals("")) {
			return true;
		} else {
			return false;
		}
	}

}
